<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>错误示例</title>
    <script src="../lib/easytable.js"></script>
    <link type="text/css" rel="stylesheet" href="../lib/easytable.css" />
    <script>
        let table
        window.onload = function () {
            let option = {
                cols: [{ title: '名字', field: 'name' },
                { title: '学号', field: 'num' }, { title: '成绩', field: 'mark' }, { title: '性别', field: 'sex', type: 'searchSelect', select: [{ 'text': '男', 'value': 'boy' }, { 'text': '女', 'value': 'girl' }] }],
                data: [{ name: 'yh', num: 123, mark: 99, sex: 'boy' }, { name: 'sk', num: 321, mark: 68, sex: 'girl' }, { name: 'dh', num: 097, mark: 77, sex: 'boy' }]
            }
            table = new easytable("table", option);
        }

        function data() {
            alert(JSON.stringify(table.data));
        }
        alert('暂未开放')
    </script>
</head>

<body>
    <!-- <div id='table'></div> -->

    <!-- <button onclick="data()">获取表格数据</button> -->
</body>

</html>